home *** CD-ROM | disk | FTP | other *** search
/ MacPeople 2003 February 1 / MACPEOPLE-2003-02-01.ISO.7z / MACPEOPLE-2003-02-01.ISO / ぶらりオンラインウェアの旅 / おしゃべり漂流記 / xGates / xGates 1.2 Source Code.sit / xGates 1.2 Source Code / structures.h < prev    next >
Text File  |  2002-12-08  |  3KB  |  147 lines

  1. /*
  2.     xGates -- Stunningly entertaining action game for MacOS Classic / MacOS X
  3.     Copyright (C) 2002 Sveinbjorn Thordarson <paladeen@soth.zoneit.com>
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19.     structures.h
  20.  
  21. */
  22.  
  23. #pragma once
  24.  
  25.  
  26. //////////////////////////////////////////////////////
  27. //Stores info on Bills as game objects
  28. //////////////////////////////////////////////////////
  29.  
  30. typedef struct
  31. {
  32.     short xloc;
  33.     short yloc;
  34.  
  35.     short state;
  36.     short target;
  37.     
  38.     short points;
  39.     short countdown;
  40.  
  41. } BillStruct;
  42.  
  43.  
  44. //////////////////////////////////////////////////////
  45. //Name and number pairs
  46. //////////////////////////////////////////////////////
  47.  
  48. typedef struct
  49. {
  50.     Str255    name[16];
  51.     long    score[16];
  52.     
  53. } HighScoreStruct;
  54.  
  55. //////////////////////////////////////////////////////
  56. //Game preferences
  57. //////////////////////////////////////////////////////
  58.  
  59. typedef struct
  60. {
  61.     short           appVersionMajor;
  62.     short           appVersionMinor;
  63.     HighScoreStruct highscores;
  64.     //regular options
  65.     short           music;
  66.     short           sound;
  67.     short           lastHighScore;
  68.     //geek options
  69.     short           noChainsawJamming;
  70.     short           fixedFrameRate;
  71.     short           drawFPS;
  72.     
  73. } PrefsStruct;
  74.  
  75. //////////////////////////////////////////////////////
  76. //Macs as game objects
  77. //////////////////////////////////////////////////////
  78.  
  79. typedef struct
  80. {
  81.     short type;
  82.     short state;
  83.     
  84.     short xloc;
  85.     short yloc;
  86.     
  87.     short countdown;
  88.  
  89. } MacStruct;
  90.  
  91.  
  92. //////////////////////////////////////////////////////
  93. //Levels, as game concepts
  94. //////////////////////////////////////////////////////
  95. typedef struct
  96. {
  97.     short numOfMacs;
  98.     
  99.     short numBills;
  100.     short billSpeed;
  101.     short maxBills;
  102.     short musicNum;
  103.     
  104.     MacStruct macs[6];
  105.  
  106. } LevelStruct;
  107.  
  108.  
  109.  
  110. //////////////////////////////////////////////////////
  111. //Data on player
  112. //////////////////////////////////////////////////////
  113. typedef struct
  114. {
  115.     long    score;
  116.     short   place;
  117.     short   dojs;
  118.     short   totalBillsKilled;
  119.     short   totalMacsSaved;
  120.  
  121. } PlayerStruct;
  122.  
  123.  
  124. //////////////////////////////////////////////////////
  125. //Department of Justice effects as game objects
  126. //////////////////////////////////////////////////////
  127. typedef struct
  128. {
  129.     Rect    rect;
  130.     short   countdown;
  131.  
  132. } DojStruct;
  133.  
  134. //////////////////////////////////////////////////////
  135. //Poofs as game objects
  136. //////////////////////////////////////////////////////
  137. typedef struct
  138. {
  139.     short   xloc;
  140.     short   yloc;
  141.  
  142.     short   state;
  143.     short   effect;
  144.     
  145. } PoofStruct;
  146.  
  147.